package com.ct.ecommerce.authorization;


import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @author changtong
 * @since 2021/5/19
 */
@SpringBootApplication
@Slf4j
public class AuthorizationServerBootStrap {

    public static void main(String[] args) {
        SpringApplication.run(AuthorizationServerBootStrap.class, args);
    }

    @Bean
    public PasswordEncoder passwordEncoder() {
        return new BCryptPasswordEncoder();
    }

}